if x > 0
then if x > 5
     then x = x - 2
     else x = x + 5
else x++